package com.hcz.elastic.dao;

import com.hcz.elastic.pojo.Goods;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

/**
 * @author hcz
 * @describtion 商品es访问dao
 * @date 2019-06-15 17:11
 */
public interface GoodsRepository extends ElasticsearchRepository<Goods,Long> {

    /**
     * 根据价格区间查询符合条件的goods
     * @param from
     * @param to
     * @return
     */
    List<Goods> findByPriceBetween(Double from,Double to);
}
